package advice;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

public class OperationAroundAdvice implements MethodInterceptor{

	@Override
	public Object invoke(MethodInvocation invocation) throws Throwable {
		Object[] args = invocation.getArguments();//target Object Method in params
		System.out.println("OperationAroundAdvice before invoked");
		Object object = invocation.proceed();
		System.out.println("OperationAroundAdvice after invoked");
		return object;
	}

}
